/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.global.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Claudio
 */
@Entity
@Table(name = "GRTCAT", schema = "dbo")
public class Categoria implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "GRTCAT_CATEGO", nullable = false, length = 6)
    private String catego;
    @Basic(optional = false)
    @Column(name = "GRTCAT_DESCRP", nullable = false, length = 60)
    private String descrp;
    @Column(name = "GRTCAT_DEBAJA")
    private Character debaja;
    
    public Categoria() {
    }

    public Categoria(String catego) {
        this.catego = catego;
    }

    public Categoria(String catego, String descrp) {
        this.catego = catego;
        this.descrp = descrp;
    }

    public String getCatego() {
        return catego;
    }

    public void setCatego(String catego) {
        this.catego = catego;
    }

    public Character getDebaja() {
        return debaja;
    }

    public void setDebaja(Character debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Categoria other = (Categoria) obj;
        if ((this.catego == null) ? (other.catego != null) : !this.catego.equals(other.catego)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + (this.catego != null ? this.catego.hashCode() : 0);
        return hash;
    }
    

    @Override
    public String toString() {
        return "tv.global.modelo.Categoria[grtcatCatego=" + catego + "]";
    }

}
